package com.ftg.learn.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 人员角色关联表
 * </p>
 *
 * @author lalala
 * @since 2022-03-07
 */
@TableName("sys_user_role")
@ApiModel(value = "UserRole对象", description = "人员角色关联表")
public class UserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "urid", type = IdType.AUTO)
    private Long urid;

    @ApiModelProperty("人员ID")
    private Long uid;

    @ApiModelProperty("角色ID")
    private Long rid;

    public Long getUrid() {
        return urid;
    }

    public void setUrid(Long urid) {
        this.urid = urid;
    }
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    @Override
    public String toString() {
        return "UserRole{" +
            "urid=" + urid +
            ", uid=" + uid +
            ", rid=" + rid +
        "}";
    }
}
